package configlogic

import (
	"context"

	bank "gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/config"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"

	"github.com/zeromicro/go-zero/core/logx"
)

type BankAddLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewBankAddLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BankAddLogic {
	return &BankAddLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *BankAddLogic) BankAdd(in *rpc.BankAddRequest) (*rpc.BankAddResponse, error) {
	// todo: add your logic here and delete this line

	m := bank.NewBankModel(l.ctx, l.svcCtx.Db)
	return m.BankAdd(in)
}
